package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;

@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class ShoppingCar extends BaseDomain{

    //购物车商品
    private Product product;

    //该种商品购买数量
    private Integer num;

    //购买者
    private User user;

    //购物车添加时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    //该种商品花费
    private Double cost;

}